#ifndef _MESSAGE_H
#define _MESSAGE_H

class CMessage
{
public:
	CMessage();
	CMessage(const char* szBuffer, int nBufferLength);
	~CMessage();
	char *GetData();
	void SetData(const char* szBuffer,int nBufferLength);
	int GetDataLength();

	char *GetBuffer();
	int GetBufferLength();

public:
	int m_nMessageType;
private:
	char *m_szData;
	char *m_szBuffer;
	int m_nDataLength;

};
#endif